home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / gcp_24.exe / ABOUT.FR_ / ABOUT.FR
Text File  |  1994-04-27  |  6KB  |  207 lines

  1. VERSION 2.00
  2. Begin Form frmAbout 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "About VT-220 for Workgroups"
  6.    ClientHeight    =   3345
  7.    ClientLeft      =   1950
  8.    ClientTop       =   2175
  9.    ClientWidth     =   6165
  10.    ClipControls    =   0   'False
  11.    Height          =   3750
  12.    Left            =   1890
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3345
  17.    ScaleWidth      =   6165
  18.    Top             =   1830
  19.    Width           =   6285
  20.    Begin PictureBox Picture1 
  21.       AutoSize        =   -1  'True
  22.       BorderStyle     =   0  'None
  23.       Height          =   780
  24.       Left            =   4140
  25.       Picture         =   ABOUT.FRX:0000
  26.       ScaleHeight     =   780
  27.       ScaleWidth      =   1710
  28.       TabIndex        =   12
  29.       Top             =   1320
  30.       Width           =   1710
  31.    End
  32.    Begin PictureBox picIcon 
  33.       AutoSize        =   -1  'True
  34.       BackColor       =   &H00C0C0C0&
  35.       BorderStyle     =   0  'None
  36.       Height          =   480
  37.       Left            =   420
  38.       Picture         =   ABOUT.FRX:0CAA
  39.       ScaleHeight     =   480
  40.       ScaleWidth      =   480
  41.       TabIndex        =   0
  42.       Top             =   300
  43.       Width           =   480
  44.    End
  45.    Begin Label Label4 
  46.       BackStyle       =   0  'Transparent
  47.       Caption         =   "and Eugene Ninestein"
  48.       Height          =   255
  49.       Left            =   1320
  50.       TabIndex        =   13
  51.       Top             =   720
  52.       Width           =   2235
  53.       WordWrap        =   -1  'True
  54.    End
  55.    Begin Label Label2 
  56.       BackStyle       =   0  'Transparent
  57.       Caption         =   "(315) 841-8106"
  58.       Height          =   255
  59.       Left            =   1320
  60.       TabIndex        =   3
  61.       Top             =   1320
  62.       Width           =   1935
  63.       WordWrap        =   -1  'True
  64.    End
  65.    Begin Label Label1 
  66.       BackStyle       =   0  'Transparent
  67.       Caption         =   "Dart Communications"
  68.       Height          =   255
  69.       Left            =   1320
  70.       TabIndex        =   4
  71.       Top             =   1080
  72.       Width           =   1815
  73.       WordWrap        =   -1  'True
  74.    End
  75.    Begin Label lblMath 
  76.       BackStyle       =   0  'Transparent
  77.       Caption         =   "Unknown"
  78.       Height          =   255
  79.       Left            =   3600
  80.       TabIndex        =   11
  81.       Top             =   2760
  82.       Width           =   2295
  83.    End
  84.    Begin Label lblMemory 
  85.       BackStyle       =   0  'Transparent
  86.       Caption         =   "Unknown KB Free"
  87.       Height          =   255
  88.       Left            =   3600
  89.       TabIndex        =   10
  90.       Top             =   2520
  91.       Width           =   2295
  92.    End
  93.    Begin Label Label9 
  94.       BackStyle       =   0  'Transparent
  95.       Caption         =   "Math Co-processor:"
  96.       Height          =   255
  97.       Left            =   1320
  98.       TabIndex        =   9
  99.       Top             =   2760
  100.       Width           =   2175
  101.    End
  102.    Begin Label Label8 
  103.       BackStyle       =   0  'Transparent
  104.       Caption         =   "Memory:"
  105.       Height          =   255
  106.       Left            =   1320
  107.       TabIndex        =   8
  108.       Top             =   2520
  109.       Width           =   2175
  110.    End
  111.    Begin Label lblCPU 
  112.       BackStyle       =   0  'Transparent
  113.       Caption         =   "x86 Unknown Mode"
  114.       Height          =   255
  115.       Left            =   1320
  116.       TabIndex        =   7
  117.       Top             =   2280
  118.       Width           =   3495
  119.    End
  120.    Begin Line Line1 
  121.       BorderWidth     =   2
  122.       X1              =   1320
  123.       X2              =   5880
  124.       Y1              =   2160
  125.       Y2              =   2160
  126.    End
  127.    Begin Label lblSerialNumber 
  128.       BackStyle       =   0  'Transparent
  129.       Caption         =   "1.0"
  130.       Height          =   255
  131.       Left            =   2880
  132.       TabIndex        =   6
  133.       Top             =   1920
  134.       Width           =   615
  135.    End
  136.    Begin Label lblSerialNumberLabel 
  137.       BackStyle       =   0  'Transparent
  138.       Caption         =   "Version Number:"
  139.       Height          =   255
  140.       Left            =   1320
  141.       TabIndex        =   5
  142.       Top             =   1920
  143.       Width           =   1455
  144.    End
  145.    Begin Label lblCredits 
  146.       BackStyle       =   0  'Transparent
  147.       Caption         =   "By Michael Baldwin"
  148.       Height          =   255
  149.       Left            =   1320
  150.       TabIndex        =   2
  151.       Top             =   480
  152.       Width           =   2235
  153.       WordWrap        =   -1  'True
  154.    End
  155.    Begin Label lblTitle 
  156.       BackStyle       =   0  'Transparent
  157.       Caption         =   "VT220 Demo Program"
  158.       Height          =   255
  159.       Left            =   1320
  160.       TabIndex        =   1
  161.       Top             =   240
  162.       Width           =   2295
  163.    End
  164. End
  165. Declare Function GetWinFlags Lib "Kernel" () As Long
  166. Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags As Integer) As Long
  167.  
  168. Sub Form_Load ()
  169.     Me.Top = (Screen.Height - Me.Height) / 2
  170.     Me.Left = (Screen.Width - Me.Width) / 2
  171.     UpdateCPUInfo
  172. End Sub
  173.  
  174. Sub Form_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  175.     Unload Me
  176. End Sub
  177.  
  178. Sub Picture1_Click ()
  179.     Unload Me
  180. End Sub
  181.  
  182. Sub UpdateCPUInfo ()
  183.     frmAbout.picIcon.Picture = frmMDI.Icon
  184.     Dim WinFlags As Long
  185.     WinFlags = GetWinFlags()
  186.  
  187.     If WinFlags And &H2 Then CPU$ = "286 "
  188.     If WinFlags And &H4 Then CPU$ = "386 "
  189.     If WinFlags And &H8 Then CPU$ = "486 "
  190.     If WinFlags And &H20 Then
  191.         CPU$ = CPU$ + "Enhanced Mode"
  192.     Else
  193.         CPU$ = CPU$ + "Standard Mode"
  194.     End If
  195.     frmAbout.lblCPU.Caption = CPU$
  196.  
  197.     frmAbout.lblMemory.Caption = Format$(GetFreeSpace(0) \ 1000) & " KB Free"
  198.  
  199.     If WinFlags And &H400 Then
  200.         frmAbout.lblMath.Caption = "Present"
  201.     Else
  202.         frmAbout.lblMath.Caption = "None"
  203.     End If
  204.  
  205. End Sub
  206.  
  207.